#include<stdio.h>
void main()
{
    int n,s;
    scanf("%d",&n);
    printf("n = %d\n",n);
    do{
        s = s*10 + n%10;
        n /= 10;
    }while(n!=0);
    printf("s = %d\n",s);
}